package com.jinit.jia.boot.autoconfigure;

import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

/**
 * SpringBootConfiguration
 * springBoot 对@Configuration的代替注解
 *
 * @author JInit
 * @date 2021-08-04
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented

@Configuration
public @interface SpringBootConfiguration {

    /**
     * proxyBeanMethods配置类是用来指定@Bean注解标注的方法是否使用代理
     * 默认true
     * @return
     */
    @AliasFor(annotation = Configuration.class)
    boolean proxyBeanMethods() default true;
}
